package net.mindview.util;

import java.util.AbstractList;

public class CountingIntegerList extends AbstractList<Integer> {
    private int mSize;

    public CountingIntegerList(int size) {
        mSize = size < 0 ? 0 : size;
    }

    public Integer get(int index) {
        return Integer.valueOf(index);
    }

    public int size() {
        return mSize;
    }

    public static void main(String[] args) {
        CountingIntegerList list = new CountingIntegerList(30);
        System.out.println(list);
    }
}
